package com.holystone.orca.sys.service;

import java.util.List;

import com.holystone.orca.base.service.IBaseService;
import com.holystone.orca.common.JSONMapper;
import com.holystone.orca.common.PageData;
import com.holystone.orca.sys.mybatis.model.SysCompany;

public interface ISysCompanyService extends IBaseService<SysCompany>{
	
	/**
	 * 分页
	 * @param iPageNo
	 * @param iPageSize
	 * @param orderField
	 * @param cmpName
	 * @return
	 * @throws Exception
	 */
	public PageData pagingSysCompany(int iPageNo, int iPageSize, String orderField, String cmpName) throws Exception;//查询company
	
	/**
	 * 添加公司信息
	 * @param sysCompany
	 * @return
	 * @throws Exception
	 */
	public boolean insertCompany(SysCompany sysCompany) throws Exception;
	
	/**
	 * 删除公司信息
	 * @param cmpId
	 * @return
	 * @throws Exception
	 */
	public boolean deleteCompany(int cmpId) throws Exception;
	
	/**
	 * 查询要修改的公司信息
	 * @param cmpId
	 * @return
	 * @throws Exception
	 */
	public List<SysCompany> selectUpdateCompany(int cmpId) throws Exception;
	
	/**
	 * 修改公司信息
	 * @param sysCompany
	 * @return
	 * @throws Exception
	 */
	public boolean updateCompany(SysCompany sysCompany) throws Exception;
	
	/**
	 * 查询公司信息，分页
	 * @param iPageNo
	 * @param iPageSize
	 * @param orderField
	 * @param cmpName
	 * @return
	 * @throws Exception
	 */
	public PageData searchCompany(int iPageNo, int iPageSize, String orderField, String cmpName) throws Exception;//根据cmpName查询company
	
	/**
	 * 查询所有公司信息
	 * @return
	 */
	public List<SysCompany> selectCompany();
	
	/**
	 * 多项删除
	 * @param list
	 * @return
	 * @throws Exception
	 */
	public boolean delSelectCompany(List<Integer> list) throws Exception;
}
